"""
项目配置文件
"""
from typing import Dict


class Config:
    """应用配置类"""

    # API配置
    API_HOST = "0.0.0.0"
    API_PORT = 8000

    # 请求头配置
    DEFAULT_HEADERS = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
        "AppleWebKit/537.36 (KHTML, like Gecko) "
        "Chrome/127.0.0.1 Safari/537.36",
    }

    # 请求配置
    REQUEST_TIMEOUT = 20
    REQUEST_VERIFY_SSL = False

    # 内容过滤关键词
    CONTENT_FILTER_KEYWORDS = [
        "请收藏：",
        "温馨提示",
        "【第1/2页】",
        "【第2/2页】",
        "【第1/3页】",
        "【第2/3页】",
        "【第3/3页】",
    ]

    # 网站排除关键词
    SITE_EXCLUDE_KEYWORDS = ["笔趣读", "本章未完"]

    # 日志级别
    LOG_LEVEL = "INFO"


# 全局配置实例
config = Config()